/*	 class declaration.
 *
*/

#ifndef BASE_DEFENSE_H_
#define BASE_DEFENSE_H_

#include "Behavior.h"
#include <BWAPI.h>

class BaseDefense : public Behavior
{
public:
	BaseDefense(std::string incName = "BaseDefense");
	
	void Enter();
	void Execute();
	void Exit();

	bool CheckConditions();

private:
	// On which frame did we last send everyone to attack
	int lastDefenseFrame;
	BWAPI::TilePosition enemyDetectedTilePosition;

	bool isNearDefensePoint(BWAPI::Unit* unit);

	std::vector<BWAPI::Unit*> scvDefense;
};

#endif
